package com.lgy.dao;

import com.lgy.pojo.Employee;

import java.util.List;

public interface EmployeeDao {
    int deleteByPrimaryKey(Integer empid);

    int insert(Employee record);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(Integer empid);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);

    Employee findByPhoneNumber(String empPhoneNumber);

    List<Employee> findByEmpName(String empname);

    List<Employee> findEmpByCompanyId(Integer companyid);

    List<Employee> findEmpAndPositionName(Integer companyId);

    Employee findByEmpId(int empId);

    List<Employee> getAllEmpByCompanyId(Integer companyId);
}